import {
	request
} from '@/assets/request.js'
import { HTTP_FREIGHT_URL,HTTP_APP_URL} from '@/config/app';

let devGulz = HTTP_APP_URL; // app

let freightUrl = HTTP_FREIGHT_URL; // 货运接口


// 翻译工作
export function state_work(data) { 
	return request({
		url: `${devGulz}/basic/state_work`,
		method: 'post',
		data: data
	})
}
// 采购商列表
export function searchCaigouUser(data) { 
	return request({
		url: `${freightUrl}/basic/search_caigou_user`,
		method: 'post',
		data: data
	})
}

// 视频教程
export function tutorialList(data) { 
	return request({
		url: `${devGulz}/Tutorial/getList`,
		method: 'post',
		data: data
	})
}
// 赢取积分
export function tutorialCategory(data) { 
	return request({
		url: `${devGulz}/Tutorial/getCategory`,
		method: 'post',
		data: data
	})
}
// 赢取积分
export function tutorialText(data) { 
	return request({
		url: `${devGulz}/Tutorial/getText`,
		method: 'post',
		data: data
	})
}
// 设置接单状态
export function staff_set_status(data) { 
	return request({
		url: `${devGulz}/basic/staff_set_status`,
		method: 'post',
		data: data
	})
}

export function getUserInfox(data) { 
	return request({
		url: `${devGulz}/user/getUserInfo`,
		method: 'post',
		data: data
	})
}


// 获取个人主页用户信息
export function getUserHomepage(data) { 
	return request({
		url:  `${devGulz}/user/getUserHomepage`,
		method: 'post',
		data: data
	})
}

// 关于我们，隐私政策
export function getContentData(data) { 
	return request({
		url:  `${devGulz}/basic/getContentData`,
		method: 'get',
		data: data
	})
}


// 我的邀请列表
export function getInvitationScoreList(data) { 
	return request({
		url:  `${devGulz}/users/score/getInvitationScoreList`,
		method: 'post',
		data: data
	})
}

// 获取我的累计积分
export function getInvitationScoreTotal(data) { 
	return request({
		url:  `${devGulz}/users/score/getInvitationScoreTotal`,
		method: 'post',
		data: data
	})
}

// 获取我的邀请人数和邀请码
export function getInvitationInfo(data) { 
	return request({
		url:  `${devGulz}/users/score/getInvitationInfo`,
		method: 'post',
		data: data
	})
}

// 获取二维码链接
export function getInvitationImg(data) { 
	return request({
		url:  `${devGulz}/users/score/getInvitationImg`,
		method: 'post',
		data: data
	})
}


// 获取人工客服手机号
export function getCustomerTel(data) { 
	return request({
		url:  `${devGulz}/userAudit/customer_tel`,
		method: 'post',
		data: data
	})
}


// 我的-投诉建议
export function sendAdvice(data) { 
	return request({
		url:  `${devGulz}/other/advice`,
		method: 'post',
		data: data
	})
}


	// 我的收藏
	
// 群组列表
export function userGroup(data) { 
	return request({
		url:  `${devGulz}/userAudit/user_group`,
		method: 'post',
		data: data
	})
}
	
// 增加群组
export function addGroup(data) { 
	return request({
		url:  `${devGulz}/userAudit/add_group`,
		method: 'post',
		data: data
	})
}
	
// 群组重命名
export function editGroup(data) { 
	return request({
		url:  `${devGulz}/userAudit/edit_group`,
		method: 'post',
		data: data
	})
}
	
// 删除群组
export function delGroup(data) { 
	return request({
		url:  `${devGulz}/userAudit/del_group`,
		method: 'post',
		data: data
	})
}

// 查找群组
export function findGroup(data) { 
	return request({
		url:  `${devGulz}/userAudit/find_group`,
		method: 'post',
		data: data
	})
}

// 迁移用户到分组
export function groupMove(data) { 
	return request({
		url:  `${devGulz}/userAudit/group_user_move`,
		method: 'post',
		data: data
	})
}
// 用户身份类型-一用于我的收藏-用户sheet内的筛选使用
export function identityType(data) { 
	return request({
		url:  `${devGulz}/userAudit/identity_type`,
		method: 'post',
		data: data
	})
}

// 积分商城

// 积分商城首页
export function getScoreHome(data) { 
	return request({
		url:  `${devGulz}/users/score/home`,
		method: 'post',
		data: data
	})
}

// 支付积分 兑换商品
export function scoreExchange(data) { 
	return request({
		url:  `${devGulz}/users/score/exchange`,
		method: 'post',
		data: data
	})
}

// 虚拟积分商品
export function scoreVirtual(data) { 
	return request({
		url:  `${devGulz}/users/score/virtual`,
		method: 'post',
		data: data
	})
}


// 专业待办

// 专业待办类别
export function getCcateProfessional(data) { 
	return request({
		url:  `${devGulz}/release/Release/cateProfessional`,
		method: 'post',
		data: data
	})
}
// 专业待办列表
export function getProfessionalList(data) { 
	return request({
		url:  `${devGulz}/DataCollection/getProfessionalList`,
		method: 'get',
		data: data
	})
}
// 专业待办详情
export function getProfessionalDetail(data) { 
	return request({
		url:  `${devGulz}/DataCollection/getProfessionalDetail`,
		method: 'get',
		data: data
	})
}
// 发布专业待办
export function sendSaveProfessional(data) { 
	return request({
		url:  `${devGulz}/release/Release/saveProfessional`,
		method: 'post',
		data: data
	})
}
   
// 支付积分 去除专业代办蒙版 
export function payScore(data) { 
	return request({
		url:  `${devGulz}/basic/pay_score`,
		method: 'post',
		data: data
	})
}
 
 // 生活广告
 
// 生活广告类别
export function getCateLife(data) { 
	return request({
		url:  `${devGulz}/release/Release/cateLife`,
		method: 'post',
		data: data
	})
}

// 生活广告列表
export function getLifeadList(data) { 
	return request({
		url:  `${devGulz}/DataCollection/getLifeadList`,
		method: 'get',
		data: data
	})
}

// 发布生活广告
export function sendSaveLifead(data) { 
	return request({
		url:  `${devGulz}/release/Release/saveLifead`,
		method: 'post',
		data: data
	})
}

// 曝光台

// 曝光台列表
export function getExposureList(data) { 
	return request({
		url:  `${devGulz}/DataCollection/getExposureList`,
		method: 'get',
		data: data
	})
}
	
// 发布曝光台
export function sendSaveExposure(data) { 
	return request({
		url:  `${devGulz}/release/Release/saveExposure`,
		method: 'post',
		data: data
	})
}	
	
// 我的发布
export function getMyRelease(data) { 
	return request({
		url:  `${devGulz}/user/getMyRelease`,
		method: 'get',
		data: data
	})
}	
	
// 点赞 与 取消赞
export function operateZan(data) { 
	return request({
		url:  `${devGulz}/userAudit/zan`,
		method: 'post',
		data: data
	})
}	
	
// 查看此人我是否点赞
export function lookatZan(data) { 
	return request({
		url:  `${devGulz}/userAudit/lookat_zan`,
		method: 'post',
		data: data
	})
}	
	
// 用户关注与取消关注
export function getGuanZhu(data) { 
	return request({
		url:  `${devGulz}/user/guanZhu`,
		method: 'post',
		data: data
	})
}	
	
// 查看此人我是否关注
export function getIsGuanZhu(data) { 
	return request({
		url:  `${devGulz}/user/isGuanZhu`,
		method: 'post',
		data: data
	})
}	
	
// 获取收藏数量
export function getGuanZhuNumber(data) { 
	return request({
		url:  `${devGulz}/user/guanzhu_number`,
		method: 'post',
		data: data
	})
}	

// 删除我的发布
export function delMyRelease(data) { 
	return request({
		url:  `${devGulz}/user/delMyRelease`,
		method: 'get',
		data: data
	})
}	
	
// 发布评论
export function sendComment(data) { 
	return request({
		url:  `${devGulz}/basic/comment`,
		method: 'post',
		data: data
	})
}
	
// 删除评论
export function delComment(data) { 
	return request({
		url:  `${devGulz}/basic/del_comment`,
		method: 'post',
		data: data
	})
}	
// 查看评论
export function watchComment(data) { 
	return request({
		url:  `${devGulz}/basic/query_comment`,
		method: 'post',
		data: data
	})
}

// 新查看评论接口
export function getRepresentativeComment(data) { 
	return request({
		url:  `${devGulz}/DataCollection/get_representative_comment`,
		method: 'post',
		data: data
	})
}


// 积分账单


// 剩余积分
export function getScoreTotal(data) { 
	return request({
		url:  `${devGulz}/users/score/getScoreTotal`,
		method: 'post',
		data: data
	})
}

export function getPrivileges(data) { 
	return request({
		url:  `${devGulz}/Privileges/getPrivileges`,
		method: 'post',
		data: data
	})
}

// 积分账单列表
export function getScoreList(data) { 
	return request({
		url:  `${devGulz}/users/score/getScoreList`,
		method: 'post',
		data: data
	})
}

// 服务时长
export function request_minute(data) { 
	return request({
		url: `${freightUrl}/user/request_minute_score`,
		method: 'post',
		data: data
	})
}


// 服务问询

// 问询创建订单
export function createOrder(data) { 
	return request({
		url: `${freightUrl}/Representative/createOrder`,
		method: 'post',
		data: data
	})
}

// 专业代办下单
export function belowOrder(data) { 
	return request({
		url: `${freightUrl}/Representative/belowOrder`,
		method: 'post',
		data: data
	})
}
// 服务和问询服务列表
export function getListOrder(data) { 
	return request({
		url: `${freightUrl}/Representative/getList`,
		method: 'get',
		data: data
	})
}

// 支付动作
export function payOrder(data) { 
	return request({
		url: `${freightUrl}/Representative/pay`,
		method: 'post',
		data: data
	})
}

// 确认结算
export function settlement(data) { 
	return request({
		url: `${freightUrl}/Representative/settlement`,
		method: 'post',
		data: data
	})
}

// 评价
export function sendScore(data) { 
	return request({
		url: `${freightUrl}/Representative/score`,
		method: 'post',
		data: data
	})
}

// 获取详情
export function getInfo(data) { 
	return request({
		url: `${freightUrl}/Representative/getInfo`,
		method: 'get',
		data: data
	})
}

// 申请售后
export function toService(data) { 
	return request({
		url: `${freightUrl}/Representative/service`,
		method: 'post',
		data: data
	})
}

// 申诉服务
export function toAppeal(data) { 
	return request({
		url: `${freightUrl}/Representative/appeal`,
		method: 'post',
		data: data
	})
}

// 获取消息小红点
export function getNotice(data) { 
	return request({
		url: `${freightUrl}/Representative/notice`,
		method: 'post',
		data: data
	})
}


// 更新获取消息小红点
export function getNoticeDel(data) { 
	return request({
		url: `${freightUrl}/Representative/noticeDel`,
		method: 'post',
		data: data
	})
}

// 获取小红点
export function getNumberList(data) { 
	return request({
		url: `${freightUrl}/Notice/getNumberList`,
		method: 'get',
		data: data
	})
}

// 删除货运订单
export function delDelivery(data) { 
	return request({
		url: `${freightUrl}/quotation/delDelivery`,
		method: 'post',
		data: data
	})
}


export function scorePayment(data) { 
	return request({
		url:  `${devGulz}/users/score/payment`,
		method: 'get',
		data: data
	})
}



// 供应商列表
export function getBlist(data) { 
	return request({
		url: `${devGulz}/demo/blist`,
		method: 'post',
		data: data
	})
}


// 检测
export function chechkIm(data) { 
	return request({
		url: `${devGulz}/user/chechkIm`,
		method: 'post',
		data: data
	})
}



